package conson.tech.manage.coupons.entity.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * ClassName: CouponsCenterEditTimeDto
 * Description: 领券中心限时抢修改入参
 *
 * @ Author: ZYF
 * Date: 2020/7/23
 * Version: 1.0
 */
@Data
public class CouponsCenterEditTimeDto implements Serializable {

    private static final long serialVersionUID = -8633008583952341080L;

    /**
     * 活动开始时间
     */
    @ApiModelProperty(value = "活动开始时间（必填）")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "活动开始时间不能为空")
    private LocalDate startTime;

    /**
     * 活动结束时间
     */
    @ApiModelProperty(value = "活动结束时间（必填）")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "活动结束时间不能为空")
    private LocalDate endTime;

    /**
     * 开抢时间
     */
    @ApiModelProperty(value = "开抢时间")
    @NotNull(message = "开抢时间不能为空")
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime beginTime;

    /**
     * 每日秒杀总数量
     */
    @ApiModelProperty(value = "每日秒杀总数量")
    @NotNull(message = "每日秒杀总数量不能为空")
    private Integer totalNum;

    /**
     * 每人可领券数量
     */
    @ApiModelProperty(value = "每人可领券数量")
    @NotNull(message = "每人可领券数量不能为空")
    private Integer limitNum;

    /**
     * 显示顺序
     */
    @ApiModelProperty(value = "显示顺序")
    @NotNull(message = "显示顺序不能为空")
    private Integer orderSrot;

}
